<!DOCTYPE html>
<!--引入名称空间-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录页</title>
</head>
<body>
<!--这三个都行-->
<!--<div th:include="hello :: shouye"></div>-->
<!--<div th:insert="hello :: shouye"></div>-->
<!--最好用这个   重点是  replace  insert   和  ~{} -->
<div th:replace="~{hello :: shouye}"></div>
<!--<div th:insert="~{hello :: shouye}"></div>-->


<h1>出错了：<span th:text="${err}"></span> </h1>
<h1>你好 <span th:text="${msg}">陌生人</span> </h1>
<label style="color: red" th:text="${msg}"></label>
<div>
    <form action="04_table" method="post" th:action="@{/login}">
        账号：<input name= "username" value="张蛟龙"/> <br>
        密码：<input name="password" value="22333"/> <br>
        <input type="submit" value="提交"/> <br>
    </form>
</div>

<img th:attr="src=@{${src}},style=${style}"/>

</body>
</html>